package learn;

import java.awt.*;

/**
 * 标题：
 * 功能：
 *
 * @Author 赵力 <ikcai.com>
 * @Date 2016/12/19 17:04
 * @Class IntelliJ IDEA
 */
public class Apple {
    private long id;
    private Color color;
    private float weight;
    private String origin;
    public Apple(){}

    @Override
    public String toString() {
        return "Apple{" +
                "id=" + id +
                ", color=" + color +
                ", weight=" + weight +
                ", origin='" + origin + '\'' +
                '}';
    }

    public Apple(long id, Color color, float weight, String origin) {
        this.id = id;
        this.color = color;
        this.weight = weight;
        this.origin = origin;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }
}
